package com.zoe.app.service;

import com.zoe.app.User;
import com.zoe.app.annotation.ParamAnalysis;
import org.springframework.stereotype.Service;

/**
 * @author zbg
 * @date 2023/07/03
 * @description
 */
@Service
public class UserService {
    @ParamAnalysis(value = "#{#id}", returnType = Integer.class)
    public Integer getId(Integer id) {
        return id;
    }

    @ParamAnalysis(value = "#{#user.name}", returnType = String.class)
    public String getName(User user) {
        return user.getName();
    }

    @ParamAnalysis(value = "#{#user}", returnType = User.class)
    public User getUser(User user) {
        return user;
    }
}
